<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

	<constant name="struts.devMode" value="true" />

	<package name="basicstruts2" extends="struts-default">

        <!-- If no class attribute is specified the framework will assume success and 
        render the result index.jsp -->
        <!-- If no name value for the result node is specified the success value is the default -->
		<action name="index">
			<result>/index.html</result>
		</action>
		
		<!-- If the URL is hello.action the call the execute method of class HelloWorldAction.
		If the result returned by the execute method is success render the HelloWorld.jsp -->
		<action name="serviceType" class="com.sajus.web.billing.admin.action.ServiceAction" method="execute">
			<result name="success">/serviceTypeList.jsp</result>
		</action>
		
		<action name="testAPI" class="com.sajus.web.billing.admin.action.TestAPIAction" method="execute">
			<result name="success">/index.html</result>
		</action>
		
		<action name="offering" class="com.sajus.web.billing.admin.action.OfferingAction" method="execute">
			<result name="success">/offeringList.jsp</result>
		</action>
		
		<action name="promotion" class="com.sajus.web.billing.admin.action.PromotionAction" method="execute">
			<result name="success">/promotionList.jsp</result>
		</action>
		
		<action name="promoOffering" class="com.sajus.web.billing.admin.action.PromoOfferingAction" method="execute">
			<result name="input">/promoOfferingList.jsp</result>
			<result name="success">/promotion.action</result>
		</action>
		
		<action name="rateMapping" class="com.sajus.web.billing.admin.action.RateMappingAction" method="execute">
			<result name="success">/rateMappingList.jsp</result>
		</action>
		
		<action name="billingInvoice" class="com.sajus.web.billing.admin.action.BillingInvoiceAction" method="execute">
			<result name="success">/billingInvoice.jsp</result>
		</action>
		
		<action name="runBilling" class="com.sajus.web.billing.admin.action.RunBillingAction" method="execute">
			<result name="success">/billingInvoice.jsp</result>
		</action>
		
		<action name="reportAccount" class="com.sajus.web.billing.admin.action.AccountReportAction" method="execute">
			<result name="success">/accountReporting.jsp</result>
		</action>
		
		<action name="searchAccount" class="com.sajus.web.billing.admin.action.SearchAccountAction" method="execute">
			<result name="success">/searchAccount.jsp</result>
		</action>
		
		<action name="billInfo" class="com.sajus.web.billing.admin.action.BillInfoAction" method="execute">
			<result name="success">/billInfo.jsp</result>
		</action>
		
		<action name="importTool" class="com.sajus.web.billing.admin.action.ImportToolAction" method="execute">
			<result name="success">/importTool.jsp</result>
			
			<interceptor-ref name="exception"/>
            <interceptor-ref name="i18n"/>
            <interceptor-ref name="fileUpload">
       			<param name="allowedTypes"></param>
       			<param name="maximumSize">102400000</param>
  	    	</interceptor-ref> 
            <interceptor-ref name="params">
                <param name="excludeParams">dojo\..*,^struts\..*</param>
            </interceptor-ref>
            <interceptor-ref name="validation">
                <param name="excludeMethods">input,back,cancel,browse</param>
            </interceptor-ref>
            <interceptor-ref name="workflow">
                <param name="excludeMethods">input,back,cancel,browse</param>
            </interceptor-ref>
            
		</action>
		
	</package>
</struts>